//导入实例
import Vue from 'vue'
import App from './App'
import store from './store/index'
import {router} from './router'
// 样式、组件
// import 'jquery/dist/jquery.min'
// import 'bootstrap/dist/css/bootstrap.css'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import '@/style/global.scss'
// import '@/mock/index.js/'

//导入工具、方法
import {
  get,
  post
} from './util/requests/requests'
import util from './util/util'
import Router from "@/router/addRouter"

// 全局注册方法
Vue.prototype.$get = get
Vue.prototype.$post = post
Vue.prototype.$util = util
Vue.prototype.$Router = Router

// 取消开发环境下的提示
Vue.config.productionTip = false
//将element组件注入vue实例
Vue.use(ElementUI)

var vm = new Vue({
  el: '#app',//通过id挂载vue实例
  router, //路由
  store,//应用级数据存储
  components: {App},
  template: '<App/>'
})

export default vm
